﻿using System;
using System.Collections.Generic;
using LuxuryResort.DAO;
using LuxuryResort.Entity;

namespace LuxuryResort.BIZ
{
    public class FoodBeverageBiz : IFoodBeverageBiz
    {
        private readonly FoodBeverageDAO _fbDAO = new FoodBeverageDAO();

        public List<Food_Beverage> GetAllFood(Guid userId, Guid resortId)
        {
            return _fbDAO.GetAll(userId, resortId);
        }

        public Food_Beverage GetFBById(Guid id, Guid userId, Guid resortId)
        {
            return _fbDAO.GetFBById(id, userId, resortId);
        }

        public int InsertFood(Food_Beverage food, Guid userId, Guid resortId)
        {
            return _fbDAO.InsertFood(food, userId, resortId);
        }

        public int UpdateFood(Food_Beverage food, Guid userId, Guid resortId)
        {
            return _fbDAO.UpdateFood(food, userId, resortId);
        }


        public int DeleteFood(Guid foodId, Guid userId, Guid resortId)
        {
            return _fbDAO.DeleteFood(foodId, userId, resortId);
        }
    }
}